# 安装https://www.anaconda.com/
conda create -n pytorch2 python=3.10.9
conda activate pytorch2

# 进入到虚拟环境pytorch2中安装pytorch2
# cpu
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
# gpu
nvidia-smi
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

# 安装这个解决错误：Initializing libiomp5.dylib, but found libiomp5.dylib already initialized.
conda install nomkl

pip install openpyxl

pip install tensorboard
pip install tensorboardX
# 项目根目录下执行
tensorboard --logdir==base/log

#下载fasttext的whl：https://mirrors.aliyun.com/pypi/simple/fasttext-wheel/
pip install fasttext_wheel-0.9.2-cp310-cp310-win_amd64.whl